﻿using UnityEngine;

public class SingleUnit : MonoBehaviour
{

	private int xPos;
	private int yPos;

	public int X
	{
		get
		{
			return xPos;
		}

		set
		{
			if (CanMove())
			{
				xPos = value;
			}

		}
	}
	public int Y
	{
		get
		{
			return yPos;
		}

		set
		{
			if (CanMove())
			{
				yPos = value;
			}

		}
	}


	public bool CanMove()
	{
        return false;
	}

	public bool CanColor()
	{
		return false;
	}

	public bool CanClear()
	{
		return false;
	}


	public void Init(int _x, int _y)
	{
		xPos = _x;
		yPos = _y;
	}

	private void OnMouseEnter()
	{

		//gameManager.EnterSweet(this);
	}

	private void OnMouseDown()
	{

		//gameManager.PressSweet(this);
	}

	private void OnMouseUp()
	{

		//gameManager.ReleaseSweet();
	}

}
